package cn.glutnn.oss.adapter;

import cn.glutnn.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * Author:   msh
 * Date:     2024/12/5 下午2:01
 * Description:
 */


public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucketName) {

    }

    @Override
    public String uploadFile(MultipartFile file, String bucket, String objectName) {
        return "";
    }

    @Override
    public List<String> listBuckets() {
        LinkedList<String> list = new LinkedList<>();
        list.add("aliyun");
        return list;
    }

    @Override
    public List<FileInfo> getAllFiles(String bucketName) {
        return null;
    }

    @Override
    public InputStream downloadFile(String bucketName, String objectName) {
        return null;
    }

    @Override
    public void removeBucket(String bucketName) {

    }

    @Override
    public void removeFile(String bucketName, String objectName) {

    }

    @Override
    public void copyObject(String sourceBucket, String sourceObject, String targetBucket, String targetObject) {

    }

    @Override
    public String getObjectInfo(String bucket, String objectName) {
        return "";
    }

    @Override
    public String getPresignedObjectUrl(String bucketName, String objectName, Integer expires) {
        return "";
    }

    @Override
    public List<FileInfo> listAllFile() {
        return null;
    }
}
